public class Student5  extends Person5{

    private String stu_id;

    public Student5(String name, genderEnum gender, int age, String stu_id) {
        super(name,gender,age);
        this.stu_id = stu_id;
    }



    public String getStu_id() {
        return stu_id;
    }

    public void setStu_id(String stu_id) {
        this.stu_id = stu_id;
    }
    public void study(){
        System.out.println("我会好好学习Java");
    }
    @Override
    public String play(){
        return super.play()+"爱玩足球";
    }

    public void printInfo(){
        System.out.println("学生的信息：");
        System.out.println(super.basicInfo());
        System.out.println("学号："+stu_id);
        study();
        System.out.println(play());
    }

    @Override
    public String toString() {
        return super.toString()+ "Student5{" +
                "stu_id='" + stu_id + '\'' +
                '}';
    }
}
